$(document).ready (function(){
	
	$('#login').on('click',function(){
		var id = $('#id').val();    
	    var password = $('#password').val();
	    
	    $.ajax({
	        url:'login_proc.jsp',
	        type:'POST',
	        data:{id:id,password:password},
	        success:function(data){
	        	if(data==0){
	        		location.href="./list.jsp";		
	        	}
	        	else{
	        		$("#message").css("visibility","visible");
	        		$("#message").effect("shake","slow");
	        	}
	        }
	    });
	});

});
